import  request  from "../utils/request";

export const login = data => {
    return request({
        url:'/login',
        method:'post',
        data
    })
}

export const getIndex = data => {
    return request({
        url:'/index',
        method:'GET',
        data
    })
}

export const updateIndex = data =>{
    return request({
        url:'/updateindex',
        method:'post',
        data
    })
}